package com.roc.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class TblEditTermRiskCfgId implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name = "MCHT_CD")
	private String MchtCd; // 商户号

	@Column(name = "TERM_ID")
	private String TermId; // 终端ID

	@Column(name = "CARD_TYPE")
	private String CardType; // 卡类型
	
	public String getMchtCd() {
		return MchtCd;
	}

	public void setMchtCd(String mchtCd) {
		MchtCd = mchtCd;
	}

	public String getTermId() {
		return TermId;
	}

	public void setTermId(String termId) {
		TermId = termId;
	}

	public String getCardType() {
		return CardType;
	}

	public void setCardType(String cardType) {
		CardType = cardType;
	}
    
    public boolean equals(Object other) {  
        if ((this == other))  
            return true;  
        if ((other == null))  
            return false;  
        if (!(other instanceof TblEditTermRiskCfgId))  
            return false;  
        TblEditTermRiskCfgId castOther = (TblEditTermRiskCfgId) other;  
  
        return ((this.getTermId() == castOther.getTermId()) || (this.getTermId() != null && castOther.getTermId() != null && this.getTermId().equals(castOther.getTermId())))  
                && ((this.getMchtCd() == castOther.getMchtCd()) || (this.getMchtCd() != null && castOther.getMchtCd() != null && this.getMchtCd().equals(  
                        castOther.getMchtCd())))
                && ((this.getCardType() == castOther.getCardType()) || (this.getCardType() != null && castOther.getCardType() != null && this.getCardType().equals(castOther.getCardType()))) ;  
    }  
  
    public int hashCode() {  
        int result = 17;  
  
        result = 37 * result + (getTermId() == null ? 0 : this.getTermId().hashCode());  
        result = 37 * result + (getMchtCd() == null ? 0 : this.getMchtCd().hashCode());  
        result = 37 * result + (getCardType() == null ? 0 : this.getCardType().hashCode());  
        return result;  
    }  
}
